const login = require('./login/index');
const getOpenId = require('./getOpenId/index');
const updateRecord = require('./updateRecord/index');
const getMySigned = require('./getMySigned/index');
const getMyForm = require('./getMyForm/index');

 
// 云函数入口函数
exports.main = async (event, context) => {
  switch (event.type) {
    case 'login':
      return await login.main(event, context);
    case 'getOpenId':
      return await getOpenId.main(event, context);
    case 'getMySigned':
      return await getMySigned.main(event, context);
    case 'getMyForm':
      return await getMyForm.main(event, context);
    case 'updateRecord':
      return await updateRecord.main(event, context);
  }
};
